<% title "Employees" %>
<%= render :partial => 'breadcrumbs' %>
<table class="admin_listing">
  <tr>
    <th>Name</th>
    <th>Employee number</th>
    <th>Gender</th>
    <th>Telephone number</th>
    <th>Department</th>
    <th>Position</th>
    <th>Level</th>
    <th></th><th></th><th></th>
  </tr>

<% @employees.each do |employee| %>
  <tr>
    <td><%=h employee.name %></td>
    <td><%=h employee.employee_number %></td>
    <td><%=h employee.gender.title unless employee.gender.nil?%></td>
    <td><%=h employee.telephone_number %></td>
    <td><%=h employee.department.title unless employee.department.nil?%></td>
    <td><%=h employee.position.title unless employee.position.nil? %></td>
    <td><%=h employee.level.title unless employee.level.nil? %></td>
    <td><%= link_to 'Show', employee %></td>
    <td><%= link_to 'Edit', edit_employee_path(employee) %></td>
    <td><%= link_to 'Destroy', employee, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
